package com.example.pkmedical.Event;

public class MessageWrap {
    private String message;
    private byte[] bytes;
    private Integer code;
    private Integer integer;
    //敲击震动跳转按钮
    public static int SHOCK_ROLLOVER_NEXT = 0x07;
    //气垫模式
    public static int QIDIANMOSHI = 0x03;
    //舒适模式
    public static int SHUSHIMOSHI = 0x05;
    //侧翻执行
    public static int ROLLOVERIMG = 0x06;
    //称重模块
    public static int CALIBRATION_WEIGHT = 0x07;
    //矫正模块
    public static int SENSOR_WEIGHT = 0x08;
    //重量显示
    public static int WEIGHT_SHOW = 0x09;
    //称重归零
    public static int WEIGHT_ZERO = 0x0a;
    //重量显示2
    public static int WEIGHT_SHOW_ADD = 0x0b;
    //护栏状态&靠背角度
    public static int RAIL_STATE = 0x0c;
    //一键移位
    public static int CHAIR_POSITION = 0x0d;
    //个人信息更新
    public static int USER_MESSAGE = 0x0e;
    //取消定时
    public static int USER_MESSAGE_TIME = 0x0f;
    //气垫取消
    public static int CUSHION_NOHAVE = 0x10;
    //停止模式的计时器
    public static int STOP_TIMER = 0x11;
    //危险动作报警
    public static int WARNING_CODE = 0x11;

    public static MessageWrap getInstance(String message) {
        return new MessageWrap(message);
    }

    public static MessageWrap getInstance(Integer code, byte[] bytes) {
        return new MessageWrap(code, bytes);
    }

    public static MessageWrap getInstance(Integer code, Integer integer) {
        return new MessageWrap(code, integer);
    }

    private MessageWrap(String message) {
        this.message = message;
    }

    public MessageWrap(Integer code, byte[] bytes) {
        this.code = code;
        this.bytes = bytes;
    }

    public MessageWrap(Integer code, Integer integer) {
        this.code = code;
        this.integer = integer;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public int getCode() {
        return code;
    }

    public void setBytes(Integer code, byte[] bytes) {
        this.bytes = bytes;
        this.code = code;
    }
}
